package com.ljs.accountclient.util;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

@Data
@AllArgsConstructor
//用来转换json的格式的类
public class
JsonResult implements Serializable {
    public static final int SUCCESS = 1;
    public static final int ERROR = 0;

    private  int code;
    private  Object data;
    private String msg;
    private  int count;//数量

    public JsonResult() {
    }

    @Override
    public String toString() {
        return "JsonResult{" +
                "code=" + code +
                ", data=" + data +
                ", msg='" + msg + '\'' +
                ", count=" + count +
                '}';
    }
}
